import request from '@/utils/request'

// 查询董监高-股东信息列表
export function listDsShareHolder(query) {
  return request({
    url: '/holder/dsShareHolder/list',
    method: 'get',
    params: query
  })
}

// 查询董监高-股东信息列表
export function findListByCompanyId(query) {
  return request({
    url: '/holder/dsShareHolder/findListByCompanyId',
    method: 'get',
    params: query
  })
}

// 查询董监高-股东信息详细
export function getDsShareHolder(id) {
  return request({
    url: '/holder/dsShareHolder/' + id,
    method: 'get'
  })
}

// 保存董监高-股东信息
export function saveDsShareHolder(data) {
  return request({
    url: '/holder/dsShareHolder/save',
    method: 'post',
    data: data
  })
}

// 删除董监高-股东信息
export function delDsShareHolder(id) {
  return request({
    url: '/holder/dsShareHolder/' + id,
    method: 'delete'
  })
}

// 导出董监高-股东信息
export function exportDsShareHolder(query) {
  return request({
    url: '/holder/dsShareHolder/export',
    method: 'get',
    params: query
  })
}

// 查询内部机构和基金
export function queryInternalOrgFund() {
  return request({
    url: '/holder/dsShareHolder/queryInternalOrgFund',
    method: 'get'
  })
}

export function queryShareholdersWithBoardSeats(id) {
  return request({
    url: '/holder/dsShareHolder/queryShareholdersWithBoardSeats?companyId=' + id,
    method: 'get'
  })
}
